import instance1 from "@/assets/http1"

interface Users {
    loginname: string
    password: string
  }
  //加入购物车
export const addCart = (userid:string,proid:string,num:string)=> instance1.post('/cart/add',{userid,proid,num} )
//查看购物车
export const getCartsList = (userid:string) => instance1.post('/cart/list',{userid})
//删除单条购物车
export const delCartsList = (cartid:string) => instance1.post('/cart/remove',{cartid})